package xyz.zhno.factory.method;

import xyz.zhno.factory.method.car.Car;
import xyz.zhno.factory.method.factory.impl.AudiFactory;
import xyz.zhno.factory.method.factory.impl.FordFactory;
import xyz.zhno.factory.method.factory.impl.TeslaFactory;

/**
 * 测试
 * @author zh_o
 * @date 2020-11-14
 */
public class Test {

    public static void main(String[] args) {
        Car car1 = new FordFactory().getCar();
        Car car2 = new AudiFactory().getCar();
        Car car3 = new TeslaFactory().getCar();
        car1.printName();
        car2.printName();
        car3.printName();
    }

}
